package com.ssy.mall;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
public class Student {
    private Integer id;
    private Integer age;
    private String username;
    private String sex;
    private Boolean isNo;

    public static void main(String[] args) {
//        Student student = Student.builder().id(1).age(20).username("小苏").isNo(true).sex("男").build();
        Student student = new Student();
        student.setAge(16).setId(2).setUsername("小苏").setIsNo(true).setSex("男");
        System.out.println("student = " + student);
    }
}
